﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="shoppingCartGrid.ascx.cs" Inherits="lyCotrols_shoppingCartGrid" %>
<div id="shoppingCart">
      <asp:DataGrid ID="DgCat" runat="server" AllowSorting="True" CellPadding="3" 
            GridLines="Horizontal" AutoGenerateColumns="False" BackColor="White" 
            BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" >
            <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
            <SelectedItemStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
            <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" 
                Mode="NumericPages" />
            <AlternatingItemStyle BackColor="#F7F7F7" />
            <ItemStyle BackColor="#E7E7FF"  Width="100%" HorizontalAlign="Center" 
                BorderWidth="1" ForeColor="#121D27" Font-Size="12px" Height="30px"/>
            
            <Columns>
                <asp:BoundColumn DataField="pid" HeaderText="ID" Visible="false" ></asp:BoundColumn>
                <asp:BoundColumn DataField="Mobile" HeaderText="手机" ReadOnly="True">
                    <HeaderStyle Width="15%" />
                </asp:BoundColumn>
                <asp:BoundColumn DataField="Points" HeaderText="类别" ReadOnly="True">
                    <HeaderStyle Width="15%" />
                </asp:BoundColumn>
                <asp:BoundColumn DataField="PerPrice" HeaderText="单价" DataFormatString="￥{0:N2}" 
                    ReadOnly="True" ItemStyle-Font-Bold="true" ItemStyle-ForeColor="Red">
                    <HeaderStyle Width="15%" />
                </asp:BoundColumn>
                <asp:TemplateColumn HeaderText="张数">
                   <ItemTemplate>
                       <asp:TextBox ID="txtCardNums" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CardNums").ToString().Trim() %>' BorderWidth="1" Font-Bold="true" ForeColor="#121d27" ></asp:TextBox>
                   </ItemTemplate>
                    <HeaderStyle Width="15%" />
                </asp:TemplateColumn>
                <asp:ButtonColumn CommandName="Delete" Text="删除"  HeaderText="删除">
                    <HeaderStyle Width="20%" />
                </asp:ButtonColumn>
            </Columns>
            <HeaderStyle BackColor="#192952" Font-Bold="True" ForeColor="White" 
                HorizontalAlign="Center" Font-Size="13px" Height="30px"/>
        </asp:DataGrid> 
</div>